import request from '@/utils/request'

// 查询流动申请列表
export function listFlowApply(query) {
  return request({
    url: '/flow/flowApply/list',
    method: 'get',
    params: query
  })
}

// 查询流动申请详细
export function getFlowApply(applyId) {
  return request({
    url: '/flow/flowApply/' + applyId,
    method: 'get'
  })
}

// 新增流动申请
export function addFlowApply(data) {
  return request({
    url: '/flow/flowApply',
    method: 'post',
    data: data
  })
}

// 修改流动申请
export function updateFlowApply(data) {
  return request({
    url: '/flow/flowApply',
    method: 'put',
    data: data
  })
}

// 删除流动申请
export function delFlowApply(applyId) {
  return request({
    url: '/flow/flowApply/' + applyId,
    method: 'delete'
  })
}

// 流动申请审批
export function flowApplyApproval(data) {
  return request({
    url: '/flow/flowApply/approve',
    method: 'put',
    data: data
  })
}
